package ${package.Service};

import com.baomidou.mybatisplus.core.metadata.IPage;
import ${superServiceClassPackage};
import ${package.Parent}.domain.co.${entity?replace('Entity', '')}AddCo;
import ${package.Parent}.domain.co.${entity?replace('Entity', '')}PageCo;
import ${package.Parent}.domain.co.${entity?replace('Entity', '')}UpdateCo;
import ${package.Parent}.domain.vo.${entity?replace('Entity', '')}PageVo;
import ${package.Parent}.domain.vo.${entity?replace('Entity', '')}Vo;
import ${package.Entity}.${entity};

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
    * 分页查询
    *
    * @param pageCo
    * @return
    */
    IPage<${entity?replace('Entity', 'PageVo')}> page(${entity?replace('Entity', 'PageCo')} pageCo);

    /**
    * 获取详情
    *
    * @param id
    * @return
    */
    ${entity?replace('Entity', 'Vo')} getInfo(Long id);

    /**
    * 新增
    *
    * @param addCo
    * @return
    */
    Long add(${entity?replace('Entity', 'AddCo')} addCo);

    /**
    * 更新
    *
    * @param updateCo
    * @return
    */
    void update(${entity?replace('Entity', 'UpdateCo')} updateCo);

    /**
    * 删除
    *
    * @param id
    * @return
    */
    void del(Long id);


}
</#if>
